<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>登录</title>
	</head>

	<body>
		<div align="center" style="background-color:#80FFFF;">
			<form action="./index.html" id="one">
				<table border="0" cellspacing="0" align="center">
					<tr>
						<th align="right">帐号</th>
						<td><input type="text" name="name" id="n1"></td>
						<td ></td>
					</tr>
					<tr>
						<th align="right">密码</th>
						<td><input type="password" name="pwd" id="p1"></td>
					</tr>
				</table>
				<input type="button" id="but1" value="登录" onclick="sub()">
				<br>
				<a href="register.html">没有帐号？点击注册</a>
			</form>
		</div>
		<script type="text/javascript">
			function sub() {
				document.getElementById("one").submit();
			}
		</script>
	</body>

</html>